package com.cysion.study.adapter

import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.cysion.study.ktbox.base.BaseAdapter
import com.cysion.study.ktbox.base.BaseViewHolder
import com.cysion.study.R

class MyTenancyListAdapter(mEntities: MutableList<String>, mContext: Context) :
    BaseAdapter<String>(mEntities, mContext) {

    companion object {

        //点击事件
        const val preview = 2000
        const val refuse = 2001
        const val agree = 2003
    }

    override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): BaseViewHolder<String> {
        return ProMoneyHolder(
            LayoutInflater.from(mContext).inflate(R.layout.item_mytenancy_list, parent, false)
        )
    }

    class ProMoneyHolder(itemView: View) : BaseViewHolder<String>(itemView) {
        override fun fillData(obj: String, position: Int) {
            itemView?.apply {

                /*tv_agree._setOnClickListener {
                    mOnTypeClickListener?.invoke(obj, position, agree)
                }*/
            }
        }

    }
}